package com.cgdata.controller;

import com.cgdata.socketconfig.SocketClientUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/socket")
@Api(value = "socketClient controller",tags = {"用于socket客户端测试的接口"})
public class SocketController {

    @Autowired
    SocketClientUtil socketClientUtil;

    @ApiOperation(value = "用于测试socket服务端",notes ="注意问题点")
    @GetMapping("/test")
    public void testSocketClient() throws Exception {
        socketClientUtil.clientUtil();
    }

}
